package TangkGame01;

public class Tank {
    int x;
    int y;
    int direct;
    int speed = 2;

    boolean isLive = true;

    public Tank(int x, int y) {
        this.x = x;
        this.y = y;
    }
    public void moveUp(){
        y -= speed;
    }
    public void moveRight() {
        x += speed;
    }
    public void moveDown() {
        y += speed;
    }
    public void moveLeft() {
        x -= speed;
    }
}
